﻿using System.Collections.Generic;

namespace Engine.AI.Astar
{
    public class StateComparer : IComparer<State>
    {
        #region IComparer<AIState> Members

        public int Compare(State x, State y)
        {
            if (x.Weight > y.Weight) return 1;
            if (x.Weight < y.Weight) return -1;
            return 0;

        }

        #endregion
    } 
}
